package com.accenture.portal.dao.book.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.book.BookBorrowMapper;
import com.accenture.portal.model.book.BookBorrow;

@Repository
public class BookBorrowMapperImpl implements BookBorrowMapper
{

	@Autowired
	private BookBorrowMapper bbm;

	@Override
	public void borrowBook(BookBorrow bookBorrow)
	{
		bbm.borrowBook(bookBorrow);
	}

	@Override
	public void returnBook(BookBorrow bookBorrow)
	{
		bbm.returnBook(bookBorrow);
	}

	@Override
	public List<BookBorrow> listBookByUserId(int borrowReaderid)
	{
		return bbm.listBookByUserId(borrowReaderid);
	}

	@Override
	public int getBookCountByUserId(int borrowReaderid)
	{
		return bbm.getBookCountByUserId(borrowReaderid);
	}

	@Override
	public BookBorrow findBorrowById(int borrowId)
	{
		return bbm.findBorrowById(borrowId);
	}

	@Override
	public List<BookBorrow> showBorrowByBook(int borrowBookid)
	{
		return bbm.showBorrowByBook(borrowBookid);
	}

	@Override
	public Integer findBorrowId(Integer borrowBookid, Integer borrowReaderid)
	{
		return bbm.findBorrowId(borrowBookid,borrowReaderid);
	}

}
